package model

import (
	"time"
)

type Role struct {
	CreateTime time.Time `gorm:"column:create_time"`        //创建时间
	Roleid     int       `gorm:"column:roleid;primary_key"` //
	RoleName   string    `gorm:"column:roleName"`           //角色名称
	UpdateTime time.Time `gorm:"column:update_time"`        //修改时间
}

// TableName sets the insert table name for this struct type
func (u *Role) TableName() string {
	return "sys_role"
}
